package com.HomeWorkhsp.Chapter07;

/**
 * Enjoy programming!!!
 * Time: 2021/11/10 -  19:35
 */
public class Test06 {
    public static void main(String[] args){
        Dog d = new Dog();
        d.name = "旺财";
        d.color = "黄";
        d.age = 3;
        d.show();
    }
}
class Dog{
    String name;
    String color;
    int age;
    public void show(){
        System.out.println("name = " + this.name);
        System.out.println("color = " + this.color);
        System.out.println("age = " + this.age);
    }
}
